﻿(function ($) {
    $.fn.MinSize = function(objT, title, minsize) {
        objT.blur(function() {
            if (objT.val().length < minsize) {
                this.style.color = "red";
                objT.attr("tooltipText", "最少需要输入" + minsize + "位字符");
            } else {
                this.style.color = "black";
                objT.attr("tooltipText", title);
            }
        });
    };

})(jQuery);